<script setup lang="ts">
import { useRouter } from 'vue-router';
import imgUse from '@/assets/imgUse';

const router = useRouter();
</script>

<template>
  <div class="home-product">
    <div class="container">
      <div class="product">
        <div class="title">
          <span class="left">云桥通的</span>
          <span class="right">产品</span>
        </div>
        <div class="content">
          <div class="content_box box_1">
            <i class="icon iconfont icon-moxingbushu"></i>
            <span class="content_title">国际云专线</span>
            <p>
              全球云网一体化布局，在全球各地多个云节点城市部署了入云节点，为客户提供全方位服务，实现24H全球云网络业务的多点部署
            </p>
            <div class="more" @click="router.push('/cloud')">
              <span id="know">了解更多</span>
              <span id="arrows">→</span>
            </div>
          </div>
          <div class="content_box box_2">
            <i class="icon iconfont icon-jinrong"></i>
            <span class="content_title">金融低延时传输</span>
            <p>
              为全球金融客户打造了一张专属低延时网络，全程端到端传输，为各大金融证券公司高频交易提供了可靠的网络平台
            </p>
            <div class="more" @click="router.push('/latency')">
              <span id="know">了解更多</span>
              <span id="arrows">→</span>
            </div>
          </div>
          <div class="content_box box_3">
            <div class="svgIcon">
              <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-bendi-01"></use>
              </svg>
            </div>
            <span class="content_title">国际本地DIA&IPLC</span>
            <p>
              全球各核心城市范围内拥有多个数据中心和网络出口节点。更容易地为客户提供全球性的互联网接入服务，满足不同地区和国家的需求
            </p>
            <div class="more" @click="router.push('/international')">
              <span id="know">了解更多</span>
              <span id="arrows">→</span>
            </div>
          </div>
          <div class="content_box box_4">
            <div class="svgIcon">
              <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-chuanshushuju"></use>
              </svg>
            </div>
            <span class="content_title">带宽&传输</span>
            <p>
              自有AS号，与各大海外运营商BGP直连，全球各地区本地IP、传输、带宽资源丰富
            </p>
            <div class="more" @click="router.push('/transfer')">
              <span id="know">了解更多</span>
              <span id="arrows">→</span>
            </div>
          </div>
          <div class="content_box box_5">
            <i class="icon iconfont icon-IDCjifang"></i>
            <span class="content_title">IDC服务</span>
            <p>
              云桥通全球IDC由专线互联，形成一张专线传输网，可为客户实现不同城市、不同国家的快速布局，低延时传输
            </p>
            <div class="more" @click="router.push('/idc')">
              <span id="know">了解更多</span>
              <span id="arrows">→</span>
            </div>
          </div>
          <div class="content_box box_6">
            <i class="icon iconfont icon-a-316_sd-wan"></i>
            <span class="content_title">SDWAN</span>
            <p id="home-partner">
              成就企业与云计算大数据深度融合的动脉，云桥通SDWAN可实现IP分流、整合定制能力和智能自动选路
            </p>
            <div class="more" @click="router.push('/sdwan')">
              <span id="know">了解更多</span>
              <span id="arrows">→</span>
            </div>
          </div>
        </div>
      </div>
      <div class="partner">
        <div class="title">
          <span class="left">典型客户</span>
          <span class="middle">&</span>
          <span class="right">战略伙伴</span>
        </div>
        <div class="content">
          <div class="left">
            <div class="box"><span>标杆客户</span></div>
            <div class="box"><span>战略伙伴</span></div>
          </div>
          <div class="right">
            <div class="iconBox" v-for="i in 35" :key="i">
              <img v-lazy="imgUse(`${i}.png`)" alt="" />
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.home-product {
  margin-top: 34px;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-image: url('@/assets/images/home/banner/partner_background.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;

  .container {
    width: 1200px;
  }

  .product {
    .title {
      text-align: center;
      font-size: 36px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 28px;
      letter-spacing: 4px;
      font-family: 'SourceHanSansCN-Normal';
      .left {
        color: #484848;
      }
      .right {
        font-weight: 700;
        /* 定义渐变色背景 */
        background: linear-gradient(to right, #5b9bc7, #3e5898);
        /* 设置背景剪切区域为文本 */
        -webkit-background-clip: text;
        /* 设置文本填充颜色为透明，只显示渐变色背景 */
        -webkit-text-fill-color: transparent;
      }
    }
    .content {
      margin-top: 70px;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      height: 674px;
      .content_box {
        width: 327px;
        height: 295px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        .content_title {
          margin-bottom: 13px;
          font-family: 'SourceHanSansCN-Medium';
          font-size: 20px;
          color: #484849;
        }
        p {
          font-family: 'SourceHanSansCN-Light';
          font-size: 16px;
          font-weight: normal;
          font-stretch: normal;
          line-height: 30px;
          letter-spacing: 0px;
          color: #424142;
        }
        .more {
          margin-top: 32px;
          width: 173px;
          // height: 40px;
          padding: 5px 0;
          background-image: linear-gradient(
            91deg,
            #02a1fb 0%,
            #0cbaeb 60%,
            #16d2db 100%
          );
          border-radius: 20px;
          display: flex;
          justify-content: center;
          align-items: center;
          transition: all 0.3s;
          #know {
            font-family: 'SourceHanSansCN-Normal';
            font-size: 18px;
            color: #fbf9fb;
            transition: transform 0.5s;
          }
          #arrows {
            margin-right: -20px;
            font-size: 20px;
            color: #fbf9fb;
            opacity: 0;
            transition: all 0.5s;
          }
          &:hover {
            background-image: linear-gradient(
              91deg,
              #16d2db 0%,
              #0cbaeb 40%,
              #02a1fb 100%
            );
            box-shadow: 0px 0px 6px -1px rgba(0, 0, 0, 0.44);
            cursor: pointer;
            #know {
              transform: translateX(-20px);
              transition: transform 0.5s;
            }
            #arrows {
              opacity: 1;
              transform: translateX(10px);
              transition: all 0.5s;
            }
          }
        }
      }

      .box_1 {
        margin-bottom: 118px;
        .icon-moxingbushu {
          color: #00a0e9;
          font-size: 88px;
        }
        .content_title {
          margin-top: -14px;
        }
      }
      .box_2 {
        padding-top: 13px;
        margin-bottom: 118px;
        .icon-jinrong {
          color: #00a0e9;
          font-size: 60px;
          margin-bottom: 12px;
        }
      }
      .box_3 {
        padding-top: 18px;
        margin-bottom: 118px;
        .svgIcon {
          .icon {
            width: 72px;
            height: 72px;
          }
        }
      }

      .box_4 {
        padding-top: 10px;
        margin-bottom: 118px;
        .svgIcon {
          margin-bottom: 10px;
          .icon {
            width: 72px;
            height: 72px;
          }
        }
        .more {
          margin-top: 66px;
        }
      }

      .box_5 {
        padding-top: 4px;
        margin-bottom: 118px;
        .icon-IDCjifang {
          color: #00a0e9;
          font-size: 70px;
          margin-bottom: 7px;
        }
        .more {
          margin-top: 38px;
        }
      }

      .box_6 {
        margin-bottom: 118px;
        .icon-a-316_sd-wan {
          color: #00a0e9;
          font-size: 74px;
          margin-bottom: 4px;
        }
        .more {
          margin-top: 42px;
        }
      }
    }
  }

  .partner {
    margin-top: 110px;
    .title {
      text-align: center;
      font-size: 36px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 1;
      letter-spacing: 4px;
      font-family: 'SourceHanSansCN-Normal';
      vertical-align: bottom;
      .left,
      .right {
        color: #484848;
      }
      .middle {
        margin: 0 20px;
        font-family: 'SourceHanSansCN-Bold';
        font-size: 58px;
        font-weight: 700;
        color: #091f5f;
        /* 定义渐变色背景 */
        background: linear-gradient(to right, #5b9bc7, #3e5898);
        /* 设置背景剪切区域为文本 */
        -webkit-background-clip: text;
        /* 设置文本填充颜色为透明，只显示渐变色背景 */
        -webkit-text-fill-color: transparent;
      }
    }

    .content {
      margin-top: 50px;
      display: flex;
      justify-content: space-between;
      padding: 0 50px;
      .left {
        display: flex;
        flex-direction: column;
        align-items: center;
        .box {
          width: 32px;
          height: 140px;
          background-color: #2c68b2;
          border-radius: 16px;
          writing-mode: vertical-rl; /* 设置文字排列方向为从上到下 */
          text-orientation: upright; /* 设置文字方向为正立 */
          white-space: nowrap; /* 防止文字换行 */
          display: flex;
          justify-content: center;
          align-items: center;
          margin-bottom: 72px;

          span {
            font-family: 'SourceHanSansCN-Regular';
            font-size: 20px;
            color: #fdfdfe;
          }
        }
      }

      .right {
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
        padding: 0 15px;
        .iconBox {
          width: 140px;
          height: 92px;
          background-color: #fff;
          border: 1px dashed #2c67b2;
          margin-bottom: 14px;
          display: flex;
          justify-content: center;
          align-items: center;
          transition: transform 0.3s, box-shadow 0.3s; /* 添加过渡效果 */
          &:hover {
            transform: scale(1.1); /* 鼠标移入时放大0.2倍 */
            box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3); /* 添加阴影效果 */
          }
        }
      }
    }
  }
}
// xl(1200px)至xxl(1600px)
@media screen and (min-width: 1201px) and (max-width: 1600px) {
  .home-product {
    .container {
      width: 1200px;
    }
  }
}

// lg(992px)至xl(1200px)
@media screen and (min-width: 993px) and (max-width: 1200px) {
  .home-product {
    .container {
      width: 700px;
      .product {
        height: 1200px;
      }
    }
  }
}

// md(768px)至lg(992px) ---- 同上
@media screen and (min-width: 769px) and (max-width: 992px) {
  .home-product {
    .container {
      width: 700px;
      .product {
        height: 1200px;
      }
    }
  }
}

// sm(576px)至md(768px)
@media screen and (min-width: 706px) and (max-width: 768px) {
  .home-product {
    .container {
      width: 95%;
      .product {
        height: 1200px;
      }
    }
  }
}
@media screen and (min-width: 577px) and (max-width: 705px) {
  .home-product {
    .container {
      width: 95%;
      .product {
        width: 100%;
        height: 2050px;
        .content {
          justify-content: center;

          .content_box {
            margin-bottom: 40px;
          }
        }
      }
    }
  }
}

// 少于xs(576px)
@media screen and (max-width: 576px) {
  .home-product {
    .container {
      width: 95%;
      .product {
        width: 100%;
        height: 2050px;
        .content {
          justify-content: center;

          .content_box {
            margin-bottom: 40px;
          }
        }
      }

      .partner {
        .content {
          padding: 0 20px;
        }
      }
    }
  }
}
</style>
